import Vue from 'vue'
import VueRouter from 'vue-router'
import IndexView from "@/views/IndexView";

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: IndexView,
    children:[],
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/LoginView.vue')
  },
  // {
  //   path: '/user',
  //   name: 'user',
  //   component: () => import('../views/UserView.vue')
  // },
  // {
  //   path: '/post',
  //   name: 'post',
  //   component: () => import('../views/PostView.vue')
  // },
  // {
  //   path: '/dept',
  //   name: 'dept',
  //   component: () => import('../views/DeptView.vue')
  // },
  // {
  //   path: '/menu',
  //   name: 'menu',
  //   component: () => import('../views/MenuVIew.vue')
  // },
  // {
  //   path: '/role',
  //   name: 'role',
  //   component: () => import('../views/RoleList.vue')
  // },
  // {
  //   path: '/type',
  //   name: 'type',
  //   component: () => import('../views/TypeView.vue')
  // },
  // {
  //   path: '/datalist',
  //   name: 'datalist',
  //   component: () => import('../views/dataListView.vue')
  // },
  // {
  //   path: '/clientLogin',
  //   name: 'clientLogin',
  //   component: () => import('../views/ClientLoginView.vue')
  // },
  // {
  //   path: '/planList',
  //   name: 'planList',
  //   component: () => import('../views/ClientPlanView.vue')
  // },
  // {
  //   path: '/cardicttype',
  //   name: 'cardicttype',
  //   component: () => import('../views/CarDictTypeView.vue')
  // },
  // {
  //   path: '/cardictdata',
  //   name: 'cardictdata',
  //   component: () => import('../views/CarDictDataView.vue')
  // },
  // {
  //   path: '/xq',
  //   name: 'xq',
  //   component: () => import('../views/ClientPlanXQ.vue')
  // },
  // {
  //   path: '/client',
  //   name: 'client',
  //   component: () => import('../views/CarClientView.vue')
  // }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
